<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="css/user/public.css">
    <link rel="stylesheet" href="css/user/index.css">
    <!--引入CSS-->
    <link rel="stylesheet" type="text/css" href="css/user/webuploader.css">
    <!--引入JS-->
    <script language="javascript" type="text/javascript" src="js/user/jquery-1.8.3.min.js"></script>
    <script language="javascript" type="text/javascript" src="js/user/index.js"></script>
    <script language="javascript" type="text/javascript" src="js/user/area.js"></script>
    <script language="javascript" type="text/javascript" src="js/user/uploadPreview.js"></script>
    <script language="javascript" type="text/javascript" src="js/user/webuploader.js"></script>
    <script language="javascript" type="text/javascript" src="js/user/ajaxfileupload.js"></script>
    <title>首页</title>
    <style>
        .contact_main{padding:0 !important;}
    </style>
</head>
<body>
<!--top-->
<div class="contact_main">
    <div class="contact_main_ts">
        <p><img src="images/member_homepage_notice.png" >新消息提醒：最近优惠活动，成功邀请一人，返利100元。</p>
    </div>
    <div class="index_list_info">
        <div class="index_list_info_left">
            <img src="images/member_homepage_avatar.png" class="index_list_photo">
            <div class="index_list_info_left_cont">
                <div class="index_list_info_left_cont_xq">
                    <!--<p>下午好，<span>李女士</span></p>-->
                    <!--<p>角色：<span>游客</span><a href="#" class="index_list_info_left_cont_person">申请投资人</a></p>-->
                    <!--<p>账户安全：<span>95%</span></p>-->
                </div>

                <p><a href="javascript:void(0);"><img src="images/member_homepage_email.png"></a><a href="javascript:void(0);"><img src="images/member_homepage_id.png"></a><a href="javascript:void(0);"><img src="images/member_homepage_angel.png"></a><a href="javascript:void(0);"><img src="images/member_homepage_org.png"></a><em class="cleardiv"></em></p>
            </div>
        </div>
        <div class="index_list_info_center">
            <!--<p><em>账户余额：</em><span>3000.00</span></p>-->
            <!--<p><em>冻结余额：</em><span>1234.00</span></p>-->
            <!--<p><em>已投金额：</em><span>499.00</span></p>-->
            <!--<p><em>优惠金额：</em><span>900...</span></p>-->
        </div>
        <div class="index_list_info_center1">
            <!--<div class="index_list_info_center1_left">-->
                <!--<p>发布项目数</p>-->
                <!--<p><span>4</span></p>-->
                <!--<p>项目被查看</p>-->
                <!--<p><span>4</span></p>-->
            <!--</div>-->
            <!--<div class="index_list_info_center1_right">-->
                <!--<p>投资项目数</p>-->
                <!--<p><span>4</span></p>-->
                <!--<p>项目查阅数</p>-->
                <!--<p><span>4</span></p>-->
            <!--</div>-->
        </div>
        <div class="index_list_info_right">
            <p><em>注册时间：</em><span>20140307 11:12:33</span></p>
            <p><em>注册时间：</em><span>20140307 11:12:33</span></p>
            <p><em>IP地址：</em><span>196.789.8.9</span><span class="index_right_yd">杭州移动</span></p>
            <p><a href="#" class="index_lest_check">查看详情</a></p>
        </div>
    </div>
    <div class="index_list_box">
        <div class="contact_main_cont">
            <div class="index_list_tab_title">
                <ul>
                    <li class="touzi assets_on">投资记录</li>
                    <li class="rongzi">融资记录</li>
                    <a class="index_list_more" href="#">更多</a>
                    <div class="cleardiv"></div>
                </ul>

            </div>
            <div class="index_list_tz">
                <div class="contact_main_cont_from1">
                    <div class="contact_main_cont_from_title">
                        <ul>
                            <li class="assets_check_time">时间</li>
                            <li class="assets_check_style">项目名称</li>
                            <li class="assets_check_sz">额度</li>
                            <li class="assets_check_zt">状态</li>
                            <li class="assets_check_num">交易号</li>
                            <div class="cleardiv"></div>
                        </ul>
                    </div>
                    <div class="contact_main_cont_from_cont">
                        <div class="contact_main_cont_from_cont_all">

                        </div>
                    </div>
                </div>
            </div>
            <div class="index_list_rz">
                <div class="contact_main_cont_from1">
                    <div class="contact_main_cont_from_title">
                        <ul>
                            <li class="assets_check_time">时间</li>
                            <li class="assets_check_style">项目名称</li>
                            <li class="assets_check_sz">额度</li>
                            <li class="assets_check_zt">状态</li>
                            <li class="assets_check_num">交易号</li>
                            <div class="cleardiv"></div>
                        </ul>
                    </div>
                    <div class="contact_main_cont_from_cont">
                        <div class="contact_main_cont_from_cont_all1">
                            <!--<ul>-->
                                <!--<li class="assets_check_time">2016-04-07 12：23：11</li>-->
                                <!--<li class="assets_check_style">投资-lipitabl</li>-->
                                <!--<li class="assets_check_sz">融资A轮500W</li>-->
                                <!--<li class="assets_check_zt">交易成功</li>-->
                                <!--<li class="assets_check_num">2016047579234791827459</li>-->
                                <!--<div class="cleardiv"></div>-->
                            <!--</ul>-->
                            <!--<ul>-->
                                <!--<li class="assets_check_time">2016-04-07 12：23：11</li>-->
                                <!--<li class="assets_check_style">投资-lipitabl</li>-->
                                <!--<li class="assets_check_sz">融资A轮500W</li>-->
                                <!--<li class="assets_check_zt">交易成功</li>-->
                                <!--<li class="assets_check_num">2016047579234791827459</li>-->
                                <!--<div class="cleardiv"></div>-->
                            <!--</ul>-->
                            <!--<ul>-->
                                <!--<li class="assets_check_time">2016-04-07 12：23：11</li>-->
                                <!--<li class="assets_check_style">投资-lipitabl</li>-->
                                <!--<li class="assets_check_sz">融资A轮500W</li>-->
                                <!--<li class="assets_check_zt">交易成功</li>-->
                                <!--<li class="assets_check_num">2016047579234791827459</li>-->
                                <!--<div class="cleardiv"></div>-->
                            <!--</ul>-->
                            <!--<ul>-->
                                <!--<li class="assets_check_time">2016-04-07 12：23：11</li>-->
                                <!--<li class="assets_check_style">投资-lipitabl</li>-->
                                <!--<li class="assets_check_sz">融资A轮500W</li>-->
                                <!--<li class="assets_check_zt">交易成功</li>-->
                                <!--<li class="assets_check_num">2016047579234791827459</li>-->
                                <!--<div class="cleardiv"></div>-->
                            <!--</ul>-->
                            <!--<ul>-->
                                <!--<li class="assets_check_time">2016-04-07 12：23：11</li>-->
                                <!--<li class="assets_check_style">投资-lipitabl</li>-->
                                <!--<li class="assets_check_sz">融资A轮500W</li>-->
                                <!--<li class="assets_check_zt">交易成功</li>-->
                                <!--<li class="assets_check_num">2016047579234791827459</li>-->
                                <!--<div class="cleardiv"></div>-->
                            <!--</ul>-->
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="index_list_xutj">
            <p class="index_list_xutj_title">项目推荐</p>
            <div class="index_list_xutj_box">

            </div>
            <div class="cleardiv"></div>
        </div>
        <div class="index_list_tzr">
            <p class="index_list_tzr_title">投资人推荐</p>
            <div class="index_list_tzr_box">

            </div>
        </div>
    </div>

<div class="cleardiv"></div>
</div>
<!--main-->
<script>

    $(document).ready(function(){
        $.ajax({
            url:"lt/user/getLoginInfo",
            data:"",
            type:"get",
            success:function(data){
            	  //data = JSON.parse(data);
                if(data.result != 0){
                    handlerError(data);
                }else{
                    var loginData = data.data;
                    var icon = loginData.icon;
                    if(icon) {
                    	  $(".index_list_photo").attr ("src", icon);
                    }
//                      alert(inviteData.inviteUrl)
                        var _html="<p>下午好，<span>"+loginData.userName+"</span></p>" +
                                "<p>角色：<span>"+loginData.roleName+"</span><a href='#' class='index_list_info_left_cont_person'>申请投资人</a></p>" +
                                "<p>账户安全：<span>"+loginData.safety+"</span></p>";
                        $(".index_list_info_left_cont_xq").append(_html);
                    }
                }
        });
        
        $.ajax({
            url:"lt/user/getAccountFundInfo",
            data:"",
            type:"get",
            success:function(data){
            		//data = JSON.parse(data);
                if(data.result != 0){
                    handlerError(data);
                }else{
                    var infoData = data.data;
                    
//                      alert(inviteData.inviteUrl)
                        var _html="<p><em>账户余额：</em><span>"+infoData.accountBalance+"</span></p>" +
                                "<p><em>冻结余额：</em><span>"+infoData.freezeAmount+"</span></p>" +
                                "<p><em>已投金额：</em><span>"+infoData.investedAmount+"</span></p>" +
                                "<p><em>优惠金额：</em><span>"+infoData.discount+"</span></p>";
                        $(".index_list_info_center").append(_html);
                    
                }
            }
        });
        $.ajax({
            url:"lt/user/projectOptInfo",
            data:"",
            type:"get",
            success:function(data){
            	  //data = JSON.parse(data);
                if(data.result != 0){
                    handlerError(data);
                }else{
                    var projectData = data.data;
                   
//                      alert(inviteData.inviteUrl)
                        var _html1="<div class='index_list_info_center1_left'>" +
                        "<p>发布项目数</p>" +
                                "<p><span>"+projectData.publishNum+"</span></p>" +
                                "<p>项目被查看</p>" +
                                "<p><span>"+projectData.visitNum+"</span></p>" +
                                "</div>" +
                                "<div class='index_list_info_center1_right'>" +
                                "<p>投资项目数</p>" +
                                "<p><span>"+projectData.investNum+"</span></p>" +
                                "<p>项目查阅数</p>" +
                                "<p><span>"+projectData.viewNum+"</span></p>" +
                                "</div>";
                        $(".index_list_info_center1").append(_html1);
                    
                }
            }
        });
        var optType;
        var projName;
        var pageIndex;
        var pageSize;
        $.ajax({
            url:"lt/user/investerOptProjList",
            data:{optType:optType,projName:projName,pageIndex:pageIndex,pageSize:pageSize},
            type:"get",
            success:function(data){
            	//data = JSON.parse(data);
                if(data.result != 0){
                    handlerError(data);
                }else{
                    var projectData = data.data;
                    for(var i = 0 ; i<5; i++){
//                            alert(inviteData.inviteUrl)
                        var _html1="<ul>" +
                                "<li class='assets_check_time'>"+projectData[i].dateTime+"</li>" +
                                "<li class='assets_check_style'>"+projectData[i].projName+"</li>" +
                                "<li class='assets_check_sz'>"+projectData[i].investMoney+"</li>" +
                                "<li class='assets_check_zt'>"+projectData[i].status+"</li>" +
                                "<li class='assets_check_num'>"+projectData[i].transSeq+"</li>" +
                                "<div class='cleardiv'></div>" +
                                "</ul>";
                        $(".contact_main_cont_from_cont_all").append(_html1);
                        $(".contact_main_cont_from_cont_all ul:odd").css("background","#f9f9f9");
                    }
                }
            }
        });
        $(".touzi").click(function(){
            $(".contact_main_cont_from_cont_all").html("");
            $.ajax({
                url:"lt/user/investerOptProjList",
                data:{optType:optType,projName:projName,pageIndex:pageIndex,pageSize:pageSize},
                type:"get",
                success:function(data){
                //	data = JSON.parse(data);
                    if(data.result != 0){
                    	handlerError(data);
                    }else{
                        var projectData = data.data;
                        if(projectData && projectData.length > 0) {
                        	 var len = projectData.length > 5 ? 5 : projectData.length;
                        	 for(var i = 0 ; i < len; i++){
//                            alert(inviteData.inviteUrl)
                            var _html1="<ul>" +
                                    "<li class='assets_check_time'>"+projectData[i].dateTime+"</li>" +
                                    "<li class='assets_check_style'>"+projectData[i].projName+"</li>" +
                                    "<li class='assets_check_sz'>"+projectData[i].investMoney+"万</li>" +
                                    "<li class='assets_check_zt'>"+projectData[i].status+"</li>" +
                                    "<li class='assets_check_num'>"+projectData[i].transSeq+"</li>" +
                                    "<div class='cleardiv'></div>" +
                                    "</ul>";
                            $(".contact_main_cont_from_cont_all").append(_html1);
                            $(".contact_main_cont_from_cont_all ul:odd").css("background","#f9f9f9");
                        }
                        }
                        
                    }
                }
            });
        });
        $(".rongzi").click(function(){
            $(".contact_main_cont_from_cont_all1").html("");
            var pageIndex;
            var pageSize;
            $.ajax({
                url:"lt/user/finacedList",
                data:{pageIndex:pageIndex,pageSize:pageSize},
                type:"get",
                success:function(data){
                //	data = JSON.parse(data);
                    if(data.result != 0){
               		     handlerError(data);
                    }else{
                        var projectData = data.data;
                        if(projectData && projectData.length > 0) {
                        	 var len = projectData.length > 5 ? 5 : projectData.length;
                        	 for(var i = 0 ; i < len; i++){
//                            alert(inviteData.inviteUrl)
                            var _html1="<ul>" +
                                    "<li class='assets_check_time'>"+projectData[i].dateTime+"</li>" +
                                    "<li class='assets_check_style'>"+projectData[i].projName+"</li>" +
                                    "<li class='assets_check_sz'>"+projectData[i].finaceMoney+"万</li>" +
                                    "<li class='assets_check_zt'>"+projectData[i].status+"</li>" +
                                    "<li class='assets_check_num'>"+projectData[i].transSeq+"</li>" +
                                    "<div class='cleardiv'></div>" +
                                    "</ul>";
                            $(".contact_main_cont_from_cont_all1").append(_html1);
                            $(".contact_main_cont_from_cont_all1 ul:odd").css("background","#f9f9f9");
                        }
                      }
                    }
                }
            });
        })

        $.ajax({
            url:"lt/user/projRecommList",
            data:"",
            type:"get",
            success:function(data){
            //	data = JSON.parse(data);
                if(data.result != 0){
                    handlerError(data);
                }else{
                    var projectData = data.data;
                    for(var i = 0 ; i<4; i++){
//                            alert(inviteData.inviteUrl)
                        var _html1="<div class='index_list_tj_cont'>" +
                                "<img src='"+projectData[i].logoUrl+"'>" +
                                "<div class='index_list_tj_cont_box'>" +
                                "<p class='index_list_tj_cont_title'>"+projectData[i].projName+"</p>" +
                                "<p>"+projectData[i].summary+"</p>" +
                                "</div>" +
                                "</div>";
                        $(".index_list_xutj_box").append(_html1);
                        var main = $(window.parent.document).find("#iframepage");
                        var thisheight = $(document).height();
                        main.height(thisheight);
                    }
                }
            }
        });
        $.ajax({
            url:"lt/user/investorRecommList",
            data:"",
            type:"get",
            success:function(data){
            //	data = JSON.parse(data);
               if(data.result != 0){
                    handlerError(data);
                }else{
                    var projectData = data.data;
                    for(var i = 0 ; i<3; i++){
//                            alert(inviteData.inviteUrl)
                        var _html1="<div class='index_list_tzr_cont'>" +
                                "<img src='"+projectData[i].icon+"'>" +
                                "<p>"+projectData[i].investor+"</p>" +
                                "</div>";
                        $(".index_list_tzr_box").append(_html1);
                        var main = $(window.parent.document).find("#iframepage");
                        var thisheight = $(document).height();
                        main.height(thisheight);
                    }
                }
            }
        });
    })

</script>
</body>
</html>